package com.platform.controller.backend;

import com.platform.base.BaseController;
import com.platform.common.Const;
import com.platform.common.ServerResponse;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/enumController/")
@CrossOrigin(origins = Const.REQUESTURL,maxAge = 3600,allowCredentials = "true")
public class EnumController extends BaseController {

    @GetMapping(value = "selectByParam.do")
    public ServerResponse<List<Map>> selectByParam(@RequestParam Map param, HttpServletRequest request){

        return iEnumService.selectByParam(param);
    }
}
